//
//  TripInfo.m
//  wuxinlvtu
//
//  Created by Apple on 12-3-5.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "TripInfo.h"

@implementation RecommendTripInfo

@synthesize travellineid = _travellineid,
name = _name,
author = _author,
creattime = _creattime,
memberid = _memberid,
coverurl = _coverurl,
praisecount = _praisecount,
favorcount = _favorcount,
commentcount = _commentcount,
membericon = _cmembericon,
fromcityid = _fromcityid;


- (id)init
{
    self = [super init];
    if (self)
    {
        _travellineid = [[NSString alloc] initWithString:@""];
        _creattime = [[NSString alloc] initWithString:@""];
        _name = [[NSString alloc] initWithString:@""];
        _author = [[NSString alloc] initWithString:@""];
        _memberid = [[NSString alloc] initWithString:@""];
        _coverurl = [[NSString alloc] initWithString:@""];
        _praisecount = [[NSString alloc] initWithString:@""];
        _favorcount = [[NSString alloc] initWithString:@""];
        _commentcount = [[NSString alloc] initWithString:@""];
        _cmembericon = [[NSString alloc] initWithFormat:@""];
        _fromcityid = [[NSString alloc] initWithFormat:@""];
    }
    return self;
}

- (void) dealloc
{
    [_travellineid release];
    [_creattime release];
    [_name release];
    [_author release];
    [_memberid release];
    [_coverurl release];
    [_praisecount release];
    [_favorcount release];
    [_commentcount release];
    [_cmembericon release];
    [_fromcityid release];
    
    [super dealloc];
}

@end

@implementation TripPageInfo

@synthesize currentPageId = _currentPageId,
nextPage = _nextPage,
totlePageCount = _totlePageCount,
tripArray = _tripArray;

- (id)init
{
    self = [super init];
    if (self) {
        _currentPageId = 0;
        _nextPage = NO;
        _totlePageCount = 0;
        _tripArray = [[NSMutableArray alloc] init];
    }
    return self;
}

- (void)dealloc {
    [_tripArray removeAllObjects];
    [_tripArray release];
    [super dealloc];
}
@end

@implementation CityInfo

@synthesize cityid = _cityid,
name = _name,
pinyin = _pinyin;

- (id)init
{
    self = [super init];
    if (self)
    {
        _cityid = [[NSString alloc] initWithString:@""];
        _name = [[NSString alloc] initWithString:@""];
        _pinyin = [[NSString alloc] initWithString:@""];
    }
    return self;
}

- (void) dealloc
{
    [_cityid release];
    [_pinyin release];
    [_name release];
    
    [super dealloc];
}

@end

@implementation PlaceInfo

@synthesize shopid = _shopid,
name = _name,
review = _review,
imageurl = _imageurl,
typeid = _typeid,
cityid = _cityid,
eventid = _eventid;

- (id)init
{
    self = [super init];
    if (self)
    {
        _shopid = [[NSString alloc] initWithString:@""];
        _name = [[NSString alloc] initWithString:@""];
        _review = [[NSString alloc] initWithString:@""];
        _imageurl = [[NSString alloc] initWithString:@""];
        _typeid = [[NSString alloc] initWithString:@""];
        _cityid = [[NSString alloc] initWithString:@""];
        _eventid = [[NSString alloc] initWithString:@""];
    }
    return self;
}

- (void) dealloc
{
    [_shopid release];
    [_review release];
    [_name release];
    [_imageurl release];
    [_typeid release];
    [_cityid release];
    [_eventid release];
    
    [super dealloc];
}

@end

@implementation PlaceDetailInfo

@synthesize telephone = _telephone,
langitude = _langitude,
latitude = _latitude,
adress = _adress,
star = _star;

- (id)init
{
    self = [super init];
    if (self)
    {
        _telephone = [[NSString alloc] initWithString:@""];
        _langitude = [[NSString alloc] initWithString:@""];
        _latitude = [[NSString alloc] initWithString:@""];
        _adress = [[NSString alloc] initWithString:@""];
        _star = [[NSString alloc] initWithString:@""];
    }
    return self;
}

- (void) dealloc
{
    [_telephone release];
    [_langitude release];
    [_latitude release];
    [_adress release];
    [_star release];
    
    [super dealloc];
}

@end


@implementation ElementPageInfo

@synthesize currentPageId = _currentPageId,
nextPage = _nextPage,
totlePageCount = _totlePageCount,
elementArray = _elementArray;

- (id)init
{
    self = [super init];
    if (self) {
        _currentPageId = 0;
        _nextPage = NO;
        _totlePageCount = 0;
        _elementArray = [[NSMutableArray alloc] init];
    }
    return self;
}

- (void)dealloc {
    [_elementArray removeAllObjects];
    [_elementArray release];
    [super dealloc];
}
@end

@implementation DatePartTripInfo
@synthesize eventArray;
@synthesize city = _city;

- (id)init
{
    self = [super init];
    if (self)
    {
        _city = [[CityInfo alloc] init];
        eventArray = [[NSMutableArray alloc] init];
    }
    return self;
}

- (void) dealloc
{
    [_city release];
    [eventArray removeAllObjects];
    [eventArray release];
    [super dealloc];
}

@end

@implementation TripInfo

@synthesize starttime = _starttime,
endtime = _endtime,
recommondpoint = _recommondpoint,
datedic = _datedic,
detail = _detail;

- (id)init
{
    self = [super init];
    if (self)
    {
        _starttime = [[NSString alloc] initWithString:@""];
        _endtime = [[NSString alloc] initWithString:@""];
        _recommondpoint = [[NSString alloc] initWithString:@""]; 
        _detail = [[NSString alloc] initWithString:@""];
        _datedic = [[NSMutableDictionary alloc] init];
    }
    return self;
}

- (void) dealloc
{
    [_starttime release];
    [_endtime release];
    [_recommondpoint release];
    [_datedic removeAllObjects];
    [_datedic release];
    [_detail release];
    [super dealloc];
}

@end

@implementation MyTripInfo

@synthesize currentPageId = _currentPageId,
nextPage = _nextPage,
totlePageCount = _totlePageCount,
tripinfoArray = _tripinfoArray;

- (id)init
{
    self = [super init];
    if (self) {
        _currentPageId = 0;
        _nextPage = NO;
        _totlePageCount = 0;
        _tripinfoArray = [[NSMutableArray alloc] init];
    }
    return self;
}

- (void)dealloc {
    [_tripinfoArray removeAllObjects];
    [_tripinfoArray release];
    [super dealloc];
}
@end